package cn.tedu.review;

/**
 * @author: Dsi
 * @date: 2021/11/11 9:32
 * @description:
 */
public class TestAnimal {
}
abstract class Insect{
    final int LEG_NUMBERS=6;
    int eggNumber;
    public void fly(){
        System.out.println("父类飞啊飞");
    }
    public abstract void sqawn();
}
class Ant extends Insect{
    @Override
    public void sqawn() {
        eggNumber=56;
        System.out.println("子类产卵："+eggNumber);
    }
}
